package avicit.bdp.dcs.utils.api;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2022-02-23 14:12
 * @类说明：
 * @修改记录：
 */
public enum HttpReaderErrorCode implements ErrorCode {

    URL_NOT_FIND_ERROR("HttpReader-01", "您未配置url值"),
    METHOD_NOT_FIND_ERROR("HttpReader-02", "您未配置method值"),
    UNSUPPORTED_METHOD_TYPE("HttpReader-03", "当前请求类型不支持"),
    CURRENT_PAGE_PARAM_NAME_NOT_FIND_ERROR("HttpReader-04", "您未配置currentPageParamName值"),
    PAGE_SIZE_PARAM_NAME_NOT_FIND_ERROR("HttpReader-05", "您未配置pageSizeParamName值"),
    START_PAGE_NOT_FIND_ERROR("HttpReader-06", "您未配置startPage值"),
    PAGE_SIZE_NOT_FIND_ERROR("HttpReader-07", "您未配置pageSize值"),
    UNSUPPORTED_PAGING_END_TYPE("HttpReader-08", "不支持的分页结束设置"),
    CALL_API_ERROR("HttpReader-09", "调用API接口失败"),
    COLUMN_NOT_FIND_ERROR("HttpReader-10", "您未配置column值"),
    HAVE_PAGING_NOT_FIND_ERROR("HttpReader-11", "您未配置havePaging值"),
    AUTH_TYPE_NOT_FIND_ERROR("HttpReader-12", "您未配置authType值"),
    UNSUPPORTED_AUTH_TYPE("HttpReader-13", "不支持的认证类型"),
    USERNAME_NOT_FIND_ERROR("HttpReader-14", "您未配置username值"),
    PASSWORD_NOT_FIND_ERROR("HttpReader-15", "您未配置password值"),
    TOKEN_NOT_FIND_ERROR("HttpReader-16", "您未配置token值"),
    KEY_NOT_FIND_ERROR("HttpReader-17", "您未配置key值"),
    VALUE_NOT_FIND_ERROR("HttpReader-18", "您未配置value值"),
    START_TIME_FIELD_NOT_FIND_ERROR("HttpReader-19", "您未配置startTimeField值"),
    END_TIME_FIELD_NOT_FIND_ERROR("HttpReader-20", "您未配置endTimeField值"),
    INITIAL_VALUE_NOT_FIND_ERROR("HttpReader-21", "您未配置initialValue值"),
    TIME_FORMAT_NOT_FIND_ERROR("HttpReader-22", "您未配置timeFormat值"),
    HAVE_INCREMENT_NOT_FIND_ERROR("HttpReader-23", "您未配置haveIncrement值"),
    RESPONSE_TYPE_NOT_FIND_ERROR("HttpReader-24", "您未配置responseType值"),
    DATA_MODE_NOT_FIND_ERROR("HttpReader-25", "您未配置dataMode值"),
    UNSUPPORTED_RESPONSE_TYPE("HttpReader-26", "不支持的返回数据格式"),
    UNSUPPORTED_DATA_MODE("HttpReader-27", "不支持的返回数据结构"),
    PAGING_END_TYPE_NOT_FIND_ERROR("HttpReader-28", "您未配置pagingEndType值"),
    SUCCESS_STATUS_CODE_NOT_FIND_ERROR("HttpReader-29", "您未配置successStatusCode值"),
    UNSUPPORTED_BODY_PARAM_TYPE("HttpReader-30", "不支持的BodyParamType");

    private final String code;

    private final String description;

    private HttpReaderErrorCode(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }

}
